﻿//---------------------------------------------------------------------------------------------
//  Copyright 2009 Jeremy Palenchar
//  http://identitynotes.palenchar.net
//
//  This file is part of the Identity Notes Identity Notes Sample Custom Activity Library.
//
//  The Identity Notes Sample Custom Activity Library is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  The Identity Notes Sample Custom Activity Library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with The Identity Notes Sample Custom Activity Library.  If not, see <http://www.gnu.org/licenses/>.
//--------------------------------------------------------------------------------------------


using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace IdentityNotes.Examples.CustomActivityLibrary
{
    public partial class ResetADPasswordActivity
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            System.Collections.Generic.Dictionary<string, object> dictionary_21 = new System.Collections.Generic.Dictionary<string, object>();
            this.SendMailToMobilePhone = new IdentityNotes.Examples.CustomActivityLibrary.SendEmailToMobilePhoneActivity();
            this.GenerateEmailBody = new System.Workflow.Activities.CodeActivity();
            this.resetADPassword = new IdentityNotes.Examples.CustomActivityLibrary.ResetPasswordUsingWMIActivity();
            this.verifyRequiredAttributes = new System.Workflow.Activities.CodeActivity();
            this.readResorurceFromRequest = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
            this.getCurrentRequestWithGuids = new IdentityNotes.Examples.CustomActivityLibrary.CurrentRequestWithGuidActivity();
            this.GenerateADPassword = new IdentityNotes.Examples.CustomActivityLibrary.GenerateRandomPasswordActivity();
            // 
            // SendMailToMobilePhone
            // 
            activitybind1.Name = "ResetADPasswordActivity";
            activitybind1.Path = "UsersMobilePhoneNumber";
            activitybind2.Name = "ResetADPasswordActivity";
            activitybind2.Path = "UsersMobilePhoneProvider";
            this.SendMailToMobilePhone.EmailBody = null;
            activitybind3.Name = "ResetADPasswordActivity";
            activitybind3.Path = "From";
            this.SendMailToMobilePhone.Name = "SendMailToMobilePhone";
            activitybind4.Name = "ResetADPasswordActivity";
            activitybind4.Path = "Subject";
            this.SendMailToMobilePhone.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.SendEmailToMobilePhoneActivity.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.SendMailToMobilePhone.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.SendEmailToMobilePhoneActivity.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.SendMailToMobilePhone.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.SendEmailToMobilePhoneActivity.CellNumberProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.SendMailToMobilePhone.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.SendEmailToMobilePhoneActivity.CellOperatorProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GenerateEmailBody
            // 
            this.GenerateEmailBody.Name = "GenerateEmailBody";
            this.GenerateEmailBody.ExecuteCode += new System.EventHandler(this.GenerateEmailBody_ExecuteCode);
            // 
            // resetADPassword
            // 
            activitybind5.Name = "ResetADPasswordActivity";
            activitybind5.Path = "ADMAName";
            activitybind6.Name = "ResetADPasswordActivity";
            activitybind6.Path = "UsersMVGUID";
            this.resetADPassword.Name = "resetADPassword";
            activitybind7.Name = "GenerateADPassword";
            activitybind7.Path = "RandomPassword";
            this.resetADPassword.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.ResetPasswordUsingWMIActivity.newPasswordProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            this.resetADPassword.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.ResetPasswordUsingWMIActivity.MANameProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.resetADPassword.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.ResetPasswordUsingWMIActivity.MVGUIDProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // verifyRequiredAttributes
            // 
            this.verifyRequiredAttributes.Name = "verifyRequiredAttributes";
            this.verifyRequiredAttributes.ExecuteCode += new System.EventHandler(this.verifyRequiredAttributes_ExecuteCode);
            // 
            // readResorurceFromRequest
            // 
            activitybind8.Name = "getCurrentRequestWithGuids";
            activitybind8.Path = "RequestTarget";
            this.readResorurceFromRequest.Name = "readResorurceFromRequest";
            this.readResorurceFromRequest.Resource = null;
            activitybind9.Name = "getCurrentRequestWithGuids";
            activitybind9.Path = "RequestTarget";
            this.readResorurceFromRequest.SelectionAttributes = null;
            this.readResorurceFromRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            this.readResorurceFromRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ResourceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            // 
            // getCurrentRequestWithGuids
            // 
            this.getCurrentRequestWithGuids.CurrentRequest = null;
            this.getCurrentRequestWithGuids.Name = "getCurrentRequestWithGuids";
            // 
            // GenerateADPassword
            // 
            this.GenerateADPassword.Name = "GenerateADPassword";
            activitybind10.Name = "ResetADPasswordActivity";
            activitybind10.Path = "PasswordLength";
            this.GenerateADPassword.RandomPassword = null;
            this.GenerateADPassword.SetBinding(IdentityNotes.Examples.CustomActivityLibrary.GenerateRandomPasswordActivity.PasswordLengthProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            workflowserviceattributes1.ConfigurationName = "IdentityNotes.Examples.CustomActivityLibrary.ResetADPasswordActivity";
            workflowserviceattributes1.Name = "ResetADPasswordActivity";
            // 
            // ResetADPasswordActivity
            // 
            this.Activities.Add(this.GenerateADPassword);
            this.Activities.Add(this.getCurrentRequestWithGuids);
            this.Activities.Add(this.readResorurceFromRequest);
            this.Activities.Add(this.verifyRequiredAttributes);
            this.Activities.Add(this.resetADPassword);
            this.Activities.Add(this.GenerateEmailBody);
            this.Activities.Add(this.SendMailToMobilePhone);
            //this.ActorId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.Name = "ResetADPasswordActivity";
            //this.RequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            //this.TargetId = new System.Guid("00000000-0000-0000-0000-000000000000");
            //this.WorkflowDefinitionId = new System.Guid("00000000-0000-0000-0000-000000000000");
            //this.WorkflowDictionary = dictionary_21;
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.CanModifyActivities = false;

        }

        #endregion

        private CurrentRequestWithGuidActivity getCurrentRequestWithGuids;
        private CodeActivity verifyRequiredAttributes;
        private CodeActivity GenerateEmailBody;
        private SendEmailToMobilePhoneActivity SendMailToMobilePhone;
        private ResetPasswordUsingWMIActivity resetADPassword;
        private Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity readResorurceFromRequest;
        private GenerateRandomPasswordActivity GenerateADPassword;
































































































    }
}
